<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //2、函数传递参数
        function fn(a,b){
            //形参赋值，就好比 执行 let a = aa; let b = bb;
            console.log(a,b);
        }
        let aa = 10; //栈区有一个空间存储的是10；
        let bb = [1,2,3];//栈区有一个空间，存储的是地址，地址对应在堆区中存储的数据（0x222）;
        fn(aa,bb);
    </script>
</body>
</html>